package service.impl;

import dao.DeptDao;
import dao.impl.DeptDaoImpl;
import pojo.Dept;
import service.DeptService;

import java.util.List;

public class DeptServiceImpl implements DeptService {
    public List<Dept> findAll(){
        DeptDao deptDao = new DeptDaoImpl();
        List<Dept> depts = deptDao.findAll();
        return depts;
    }
}
